package srzy.data

import scala.collection.mutable.ListBuffer

class CaseInfo {
  var caseId: Int = 0
  var caseName: String = ""
  var casePath: String = ""
  var exceptCondition: String = ""
  var sqlPath: String = ""
  var msgPath: String = ""
  var dbInitSQL: List[String] = List.empty[String]
  var initShell: String = ""
  var sendMsg: List[String] = List.empty[String]
  var receStdMsg: List[String] = List.empty[String]
  var receMsg: List[String] = List.empty[String]
  var caseResult: Boolean = true
  var dbCompResult: Boolean = true
  var dbBureauCompResult: Boolean = true
  var msgCompResult: Boolean = true
  var shellCompResult: Boolean = true
  var dbInitResult: Boolean = true
  var shellInitResult: Boolean = true
  var msgCompInfos: ListBuffer[String] = ListBuffer.empty[String]
  var dbCompInfos: List[DBCompInfo] = List.empty[DBCompInfo]
  var dbBureauCompInfos: List[DBCompInfo] = List.empty[DBCompInfo]
  var shellCompInfos: List[ShellCompInfo] = List.empty[ShellCompInfo]

  override def toString(): String = {
    val sb = new StringBuffer()
    sb.append("caseId:" + caseId + "\n")
    sb.append("caseName:" + caseName + "\n")
    sb.append("casePath:" + casePath + "\n")
    sb.append("exceptCondition:" + exceptCondition + "\n")
    sb.append("sqlPath:" + sqlPath + "\n")
    sb.append("msgPath:" + msgPath + "\n")
    sb.append("dbInitSQL:" + dbInitSQL + "\n")
    sb.append("initShell:" + initShell + "\n")
    sb.append("sendMsg:" + sendMsg + "\n")
    sb.append("receStdMsg:" + receStdMsg + "\n")
    sb.append("receMsg:" + receMsg + "\n")
    sb.append("caseResult:" + caseResult + "\n")
    sb.append("dbCompResult:" + dbCompResult + "\n")
    sb.append("dbBureauCompResult:" + dbBureauCompResult + "\n")
    sb.append("msgCompResult:" + msgCompResult + "\n")
    sb.append("shellCompResult:" + shellCompResult + "\n")
    sb.append("dbInitResult:" + dbInitResult + "\n")
    sb.append("shellInitResult:" + shellInitResult + "\n")
    sb.append("msgCompInfos:" + msgCompInfos + "\n")
    sb.append("dbCompInfos:" + dbCompInfos + "\n")
    sb.append("dbBureauCompInfos:" + dbBureauCompInfos + "\n")
    sb.append("shellCompInfos:" + shellCompInfos + "\n")
    sb.toString()
    //    "caseId:" + caseId + "\n" +
    //      "caseName:" + caseName + "\n" +
    //      "casePath:" + casePath + "\n" +
    //      "exceptCondition:" + exceptCondition + "\n" +
    //      "sqlPath:" + sqlPath + "\n" +
    //      "msgPath:" + msgPath + "\n" +
    //      "dbInitSQL:" + dbInitSQL + "\n" +
    //      "initShell:" + initShell + "\n" +
    //      "sendMsg:" + sendMsg + "\n" +
    //      "receStdMsg:" + receStdMsg + "\n" +
    //      "receMsg:" + receMsg + "\n" +
    //      "caseResult:" + caseResult + "\n" +
    //      "dbCompResult:" + dbCompResult + "\n" +
    //      "dbBureauCompResult:" + dbBureauCompResult + "\n" +
    //      "msgCompResult:" + msgCompResult + "\n" +
    //      "shellCompResult:" + shellCompResult + "\n" +
    //      "dbInitResult:" + dbInitResult + "\n" +
    //      "shellInitResult:" + shellInitResult + "\n" +
    //      "msgCompInfos:" + msgCompInfos + "\n" +
    //      "dbCompInfos:" + dbCompInfos + "\n" +
    //      "dbBureauCompInfos:" + dbBureauCompInfos + "\n" +
    //      "shellCompInfos:" + shellCompInfos + "\n"
  }
}